package com.ruoyi.sso.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * sso微信用户对象 sso_wx_user
 * 
 * @author zsj
 * @date 2020-01-07
 */
public class SsoWxUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long wxUserId;

    /** 微信名 */
    @Excel(name = "微信名")
    private String nickName;

    /** 性别 0：未知、1：男、2：女 */
    @Excel(name = "性别 0：未知、1：男、2：女")
    private Integer gender;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String weixinOpenid;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarUrl;

    /** 注册ip */
    @Excel(name = "注册ip")
    private String registerIp;

    /** 注册时间 */
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 最后登录时间 */
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 最后登录ip */
    @Excel(name = "最后登录ip")
    private String lastLoginIp;

    /** 网址关联id */
    @Excel(name = "网址关联id")
    private String relateIds;

    /** 角色0业主1物管 */
    @Excel(name = "角色0业主1物管")
    private Integer role;

    public void setWxUserId(Long wxUserId) 
    {
        this.wxUserId = wxUserId;
    }

    public Long getWxUserId() 
    {
        return wxUserId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setWeixinOpenid(String weixinOpenid) 
    {
        this.weixinOpenid = weixinOpenid;
    }

    public String getWeixinOpenid() 
    {
        return weixinOpenid;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setRegisterIp(String registerIp) 
    {
        this.registerIp = registerIp;
    }

    public String getRegisterIp() 
    {
        return registerIp;
    }
    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }
    public void setLastLoginTime(Date lastLoginTime) 
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime() 
    {
        return lastLoginTime;
    }
    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }
    public void setRelateIds(String relateIds) 
    {
        this.relateIds = relateIds;
    }

    public String getRelateIds() 
    {
        return relateIds;
    }
    public void setRole(Integer role) 
    {
        this.role = role;
    }

    public Integer getRole() 
    {
        return role;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wxUserId", getWxUserId())
            .append("nickName", getNickName())
            .append("gender", getGender())
            .append("weixinOpenid", getWeixinOpenid())
            .append("avatarUrl", getAvatarUrl())
            .append("registerIp", getRegisterIp())
            .append("registerTime", getRegisterTime())
            .append("lastLoginTime", getLastLoginTime())
            .append("lastLoginIp", getLastLoginIp())
            .append("relateIds", getRelateIds())
            .append("role", getRole())
            .toString();
    }
}
